package com.asset.servlet.admin;
/**
 *@ClassName UpdateServlet3
 *@Author B21015118吴逸鑫
 *@Date 2022/6/9 20:05
 **/
import com.asset.service.AdminService;
import com.asset.service.impl.AdminServiceImpl;


import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet("/UpdateServlet3")
public class UpdateServlet3 extends HttpServlet {
    AdminService bookService = new AdminServiceImpl();

    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        bookService.update(request, response);

    }


    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        request.setCharacterEncoding("utf-8");
        response.setContentType("text/html;charset=utf-8");
        doGet(request, response);
    }

}
